﻿using EFCore.Models;
using Microsoft.EntityFrameworkCore;
using SIService;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace SService
{
    public class PDinventory_detailsS: PDinventory_detailsSI
    {
        private readonly WmssystemContext myDb;

        public PDinventory_detailsS(WmssystemContext myDb)
        {
            this.myDb = myDb;
        }
        public Task<List<sys_inventory_details>> Query()
        {
            return myDb.sys_inventory_details.ToListAsync();
        }
        //添加
        public Task<int> Add(sys_inventory_details add)
        {
            myDb.sys_inventory_details.Add(add);
            return myDb.SaveChangesAsync();
        }
    }
}
